// //登录接口携带参数的ts类型
export interface loginFormData {
  userName: string
  password: string
}

//全部接口返回的数据类型
interface ResponseData {
  code: number
  message: string
  ok: boolean
}

//登录接口返回的数据类型
export interface loginResponseData extends ResponseData {
  data: string
}

//获取用户信息接口返回的数据类型
export interface userResponseData extends ResponseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}
